<!DOCTYPE html>
<?php $base_path= dirname(dirname($_SERVER['REQUEST_URI']).'/..'); $base_path=rtrim($base_path,'/');?>
<html>
	<head>
		<meta charset="utf-8">
		<title>elFinder 2.0</title>

		<!-- jQuery and jQuery UI (REQUIRED) -->
		<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/themes/smoothness/jquery-ui.css">
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
		<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>

		<!-- elFinder CSS (REQUIRED) -->
		<link rel="stylesheet" type="text/css" href="<?php echo $base_path?>/sfm/css/elfinder.min.css">
		<link rel="stylesheet" type="text/css" href="<?php echo $base_path?>/sfm/css/theme.css">

		<!-- elFinder JS (REQUIRED) -->
		<script src="<?php echo $base_path?>/sfm/js/elfinder.full.js"></script>

		<!-- elFinder initialization (REQUIRED) -->
		<script type="text/javascript" charset="utf-8">
			// Documentation for client options:
			// https://github.com/Studio-42/elFinder/wiki/Client-configuration-options
			$(document).ready(function() {
				$('#elfinder').elfinder({url : '<?php echo $base_path?>/admin/system/sfm', customData : {infomsg: function(){return 'test';}}});
			});
		</script>
	</head>
	<body>
		<!-- Element where elFinder will be created (REQUIRED) -->
		<div id="elfinder"></div>
	</body>
</html>

